Skip to content

stdaddr: Accept vote and revoke limits separately.#2624

Merged
davecgh merged 1 commit intodecred:masterfrom
davecgh:stdaddr_calc_limits_in_reward_cmt_script
Mar 30, 2021
Merged

stdaddr: Accept vote and revoke limits separately.#2624
davecgh merged 1 commit intodecred:masterfrom
davecgh:stdaddr_calc_limits_in_reward_cmt_script

Conversation

@davecgh
Copy link
Copy Markdown
Member

@davecgh davecgh commented Mar 16, 2021

This is rebased on #2619.

This modifies the RewardCommitmentScript method of the StakeAddress interface to accept the vote and revoke fee limits separately instead of expecting the caller to have already encoded it properly.

This simplifies the creation of the reward commitment script since there is not currently any other method available anywhere to independently encode the limits properly and it is not a particularly trivial encoding.

Finally, the tests and example are updated accordingly.

@davecgh davecgh added this to the 1.7.0 milestone Mar 16, 2021
@davecgh davecgh force-pushed the stdaddr_calc_limits_in_reward_cmt_script branch from d408079 to dff23ee Compare March 17, 2021 18:15
Comment thread internal/staging/stdaddr/addressv0.go
This modifies the RewardCommitmentScript method of the StakeAddress
interface to accept the vote and revoke fee limits separately instead of
expecting the caller to have already encoded it properly.

This simplifies the creation of the reward commitment script since there
is not currently any other method available anywhere to independently
encode the limits properly and it is not a particularly trivial
encoding.

Finally, the tests and example are updated accordingly.
@davecgh davecgh force-pushed the stdaddr_calc_limits_in_reward_cmt_script branch from dff23ee to a2366e6 Compare March 30, 2021 07:00
@davecgh davecgh merged commit a2366e6 into decred:master Mar 30, 2021
@davecgh davecgh deleted the stdaddr_calc_limits_in_reward_cmt_script branch March 30, 2021 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants